package com.yanqu.road.entity.activity.ghost;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;

@FieldTypeAnnotation(tableName = "t_c_activity_ghost_user_ability")
public class GhostUserAbility extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "区服ID")
    private long serverId;

    @FieldTypeAnnotation(desc = "玩家ID")
    private long userId;

    @FieldTypeAnnotation(desc = "玩家门客历史最高赚钱")
    private long userAbility;

    public GhostUserAbility(int activityId, long serverId, long userId, long userAbility) {
        this.activityId = activityId;
        this.serverId = serverId;
        this.userId = userId;
        this.userAbility = userAbility;
        setInsertOption();
    }

    public GhostUserAbility() {
    }

    public int getActivityId() {
        return activityId;
    }

    public long getServerId() {
        return serverId;
    }

    public long getUserAbility() {
        return userAbility;
    }

    public void setActivityId(int activityId) {
        if (activityId != this.activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public void setServerId(long serverId) {
        if (serverId != this.serverId) {
            this.serverId = serverId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (userId != this.userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public void setUserAbility(long userAbility) {
        if (userAbility != this.userAbility) {
            this.userAbility = userAbility;
            setUpdateOption();
        }
    }
}
